from django.urls import path

from . import views_api
from . import views

app_name = "scrum"

urlpatterns = [
    # api
    path('api/product_type/', views_api.ProductType.as_view(), name="product_type"),
    path('api/product_type/<int:pk>', views_api.ProductTypeDetail.as_view(), name="product_type_detail"),
    path('api/tasks_in_progress', views_api.tasks_in_progress, name="tasks_in_progress"),
    path('api/get_product_by_type/<int:product_type_id>', views_api.get_product_by_type, name="get_product_by_type"),
    path('api/get_product_backlog_by_product_id/<int:product_id>', views_api.get_product_backlog_by_product_id, name="get_product_backlog_by_product_id"),
    path('api/get_sprint_backlog_by_product_backlog_id/<int:product_backlog_id>', views_api.get_sprint_backlog_by_product_backlog_id, name="get_sprint_backlog_by_product_backlog_id"),
    path('api/get_sb_html/<int:product_backlog_id>', views_api.get_sb_html, name="get_sb_html"),

    # view template
    path('base/', views.base, name="base"),
    path('', views.index, name="index"),
    path('product_backlogs/', views.product_backlogs, name="product_backlogs"),
    path('instructions/', views.instructions, name="instructions"),
    path('product/', views.product, name="product"),
    path('product_table/', views.product_table, name="product_table"),
    path('explain/', views.explain, name="explain"),
    path('week/', views.week, name="week"),

]
